|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EVALFUNCTYPE>
negotiator.utility.EVALFUNCTYPE
public enum EVALFUNCTYPE
This class specifies the possible evaluation functions. In addition methods are included to calculate the utility given a value and the parameters of a particular function.
| Enum Constant Summary | |
|---|---|
CONSTANT
A constant evaluation function: all values have the same utility. |
|
FARATIN
A Faratin utilty function. |
|
LINEAR
A linear utility function. |
|
TRIANGULAR
A triangular utility function. |
|
TRIANGULAR_VARIABLE_TOP
A triangular utility function of which the top has a given utility. |
|
| Method Summary | |
|---|---|
static EVALFUNCTYPE |
convertToType(java.lang.String type)
Method which convert a string type to an object. |
static double |
evalFaratin(double x,
double max,
double min,
double alpha,
double epsilon)
Method which given the value of an issue, returns the utility of the value. |
static double |
evalLinear(double value,
double slope,
double offset)
Method which given a value of a linear issue, returns the utility of the value. |
static double |
evalLinearRev(double utility,
double offset,
double slope)
Method which given the utility of an issue, converts it back to the value. |
static double |
evalTriangular(double x,
double lowerBound,
double upperBound,
double top)
Method which given the value x, returns the utility of the value. |
static double |
evalTriangularVariableTop(double x,
double lowerBound,
double upperBound,
double top,
double topValue)
Method which given the value x, returns the utility of the value. |
static EVALFUNCTYPE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EVALFUNCTYPE[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EVALFUNCTYPE CONSTANT
public static final EVALFUNCTYPE LINEAR
public static final EVALFUNCTYPE FARATIN
public static final EVALFUNCTYPE TRIANGULAR
public static final EVALFUNCTYPE TRIANGULAR_VARIABLE_TOP
| Method Detail |
|---|
public static EVALFUNCTYPE[] values()
for (EVALFUNCTYPE c : EVALFUNCTYPE.values()) System.out.println(c);
public static EVALFUNCTYPE valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static EVALFUNCTYPE convertToType(java.lang.String type)
type - of the evaluation function.
public static double evalLinear(double value,
double slope,
double offset)
value - of the issue.slope - of the linear evaluation function.offset - of the linear evaluation function.
public static double evalLinearRev(double utility,
double offset,
double slope)
utility - of a value for the issue.offset - of the linear evaluation function of the issue.slope - of the linear evaluation function of the issue.
public static double evalFaratin(double x,
double max,
double min,
double alpha,
double epsilon)
x - value of the issue.max - min - alpha - epsilon -
public static double evalTriangular(double x,
double lowerBound,
double upperBound,
double top)
x - lowerBound - upperBound - top -
public static double evalTriangularVariableTop(double x,
double lowerBound,
double upperBound,
double top,
double topValue)
x - lowerBound - upperBound - top - topValue - utility of the value with the highest utility.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||